package com.shop.web;

import java.util.Map;

import org.apache.struts2.interceptor.ApplicationAware;
import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;
import com.shop.entity.UserInfo;

public class HelloAction3  extends ActionSupport implements RequestAware,SessionAware,ApplicationAware{
	private Map<String,Object> request;
	private Map<String,Object> session;
	private Map<String,Object> application;
	@Override
	public String execute() throws Exception {
		request.put("req", 100);
		session.put("ses", "张三丰");
		application.put("app", new UserInfo() );
		return super.execute();
	}
	@Override
	public void setApplication(Map<String, Object> application) {
		this.application = application;
	}
	@Override
	public void setSession(Map<String, Object> session) {
		this.session =session;
	}
	@Override
	public void setRequest(Map<String, Object> request) {
		this.request  =request;
	}
	

	
}
